<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>ECSHOP 管理中心 - 商品列表 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="__CSS__/general.css" rel="stylesheet" type="text/css" />
    <link href="__CSS__/main.css" rel="stylesheet" type="text/css" />
    <link href="__CSS__/page.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
    <span class="action-span"><a href="{:U('add')}">添加新商品</a></span>
    <span class="action-span1"><a href="__GROUP__">ECSHOP 管理中心</a></span>
    <span id="search_id" class="action-span1"> - 商品列表 </span>
</h1>
<div style="clear:both"></div>
<div class="form-div">
    <form action="" name="searchForm">
        <img src="__IMG__/icon_search.gif" width="26" height="22" border="0" alt="search" />
        <!-- 分类 -->
        <select name="cat_id">
            <option value="0">所有分类</option>
            <foreach name="cat_list" item="val">
                <option value=""></option>
            </foreach>
        </select>
        <!-- 品牌 -->
        <select name="brand_id">
            <option value="0">所有品牌</option>
            <foreach name="brand_list" item="val">
                <option value=""></option>
            </foreach>
        </select>
        <!-- 推荐 -->
        <select name="intro_type">
            <option value="0">全部</option>
            <option value="is_best">精品</option>
            <option value="is_new">新品</option>
            <option value="is_hot">热销</option>
        </select>
        <!-- 上架 -->
        <select name="is_on_sale">
            <option value=''>全部</option>
            <option value="1">上架</option>
            <option value="0">下架</option>
        </select>
        <!-- 关键字 -->
        关键字 <input type="text" name="keyword" size="15" />
        <input type="submit" value=" 搜索 " class="button" />
    </form>
</div>

<!-- 商品列表 -->
<form method="post" action="" name="listForm" onsubmit="">
    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>编号</th>
                <th>商品名称</th>
                <th>货号</th>
                <th>价格</th>
                <th>上架</th>
                <th>精品</th>
                <th>新品</th>
                <th>热销</th>
                <th>推荐排序</th>
                <th>库存</th>
                <th>操作</th>
            </tr>
            <foreach name="rows" item="row">
                <tr>
                    <td align="center">{$row.id}</td>
                    <td align="center" class="first-cell">{$row.name}</td>
                    <td align="center">{$row.sn}</td>
                    <td align="center">{$row.shop_price}/{$row.market_price}</td>
                    <td align="center"><img src="__IMG__/<if condition='$row["is_on_sale"] eq 1'>yes.gif<else/>no.gif</if>"/></td>
                    <td align="center"><img src="__IMG__/<if condition='$row["is_best"]'>yes.gif<else/>no.gif</if>"/></td>
                    <td align="center"><img src="__IMG__/<if condition='$row["is_new"]'>yes.gif<else/>no.gif</if>"/></td>
                    <td align="center"><img src="__IMG__/<if condition='$row["is_hot"]'>yes.gif<else/>no.gif</if>"/></td>
                    <td align="center">{$row.sort}</td>
                    <td align="center">{$row.stock}</td>
                    <td align="center">
                        <a href="{:U('edit',['id'=>$row['id']])}" title="编辑"><img src="__IMG__/icon_edit.gif" width="16" height="16" border="0" /></a>
                        <a href="{:U('remove',['id'=>$row['id']])}" onclick="" title="删除"><img src="__IMG__/icon_trash.gif" width="16" height="16" border="0" /></a></td>
                </tr>
            </foreach>
        </table>

        <!-- 分页开始 -->
        <div class="page">
            {$page_html}
        </div>
        <!-- 分页结束 -->
    </div>
</form>

<div id="footer">
    共执行 7 个查询，用时 0.028849 秒，Gzip 已禁用，内存占用 3.219 MB<br />
    版权所有 &copy; 2005-2012 上海商派网络科技有限公司，并保留所有权利。</div>
</body>
</html>